package com.fenghao.subject.infra.basic.service;

import com.fenghao.subject.infra.basic.entity.SubjectMapping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SubjectMappingService
 */
public interface SubjectMappingService {

    /**
     * 通过ID查询单条数据
     */
    SubjectMapping queryById(Long id);


    /**
     * 新增数据
     */
    SubjectMapping insert(SubjectMapping subjectMapping);

    /**
     * 修改数据
     */
    SubjectMapping update(SubjectMapping subjectMapping);

    /**
     * 通过主键删除数据
     */
    boolean deleteById(Long id);

    /**
     * 通过SubjectMapping查询SubjectMapping集合
     */
    List<SubjectMapping> queryLabelId(SubjectMapping subjectMapping);

    /**
     * 批量添加
     */
    void insertBatch(@Param("subjectMappingList") List<SubjectMapping> subjectMappingList);
}
